/**
 * 
 */
package furniture.items3d.model;

import javax.vecmath.Point3d;
import javax.vecmath.Vector3d;

import org.eclipse.swt.graphics.RGB;

/**
 * Defines a box-shaped primitive object.
 * @author Grill Balazs (balage.g@gmail.com)
 *
 */
public class BoxPrimitive extends LayedPrimitive {

	/**
	 * A point on central axis of the box
	 */
	public Point3d point;
	
	/**
	 * Direction of the axis
	 */
	public Vector3d dir;
	
	/**
	 * Width of the box (horizontal, perpendicular to dir)
	 */
	public double width;
	
	/**
	 * Inner width of the box
	 */
	public double iwidth = 0.0;
	
	/**
	 * Height of the box (vertical, towards Y-axis)
	 */
	public double height;
	
	/**
	 * Inner height of the box
	 */
	public double iheight = 0.0;
	
	/**
	 * Color of the box;
	 */
	public RGB color;
	
}
